home *** CD-ROM | disk | FTP | other *** search
/ STraTOS 1997 April & May / STraTOS 1 - 1997 April & May.iso / CD01 / PRGMANIA / XA_6S / SOURCE / SYS_MENU.C < prev    next >
Encoding:
C/C++ Source or Header  |  1996-09-08  |  854 b   |  43 lines

  1. /*
  2.  * XaAES - XaAES Ain't the AES
  3.  *
  4.  * A multitasking AES replacement for MiNT
  5.  *
  6.  */
  7.  
  8. #include <OSBIND.H>
  9. #include <VDI.H>
  10. #include "XA_TYPES.H"
  11. #include "XA_CODES.H"
  12. #include "XA_DEFS.H"
  13. #include "XA_GLOBL.H"
  14. #include "SYSTEM.H"
  15. #include "ABOUT.H"
  16. #include "TASKMAN.H"
  17.  
  18. short shutdown_contrl[]={XA_SHUTDOWN,0,0,0,0};
  19. AESPB shutdown_pb;
  20.  
  21. /*
  22.     Handle clicks on the system default menu
  23. */
  24. void do_system_menu(short clicked_title, short menu_item)
  25. {
  26.     switch(menu_item)
  27.     {
  28.         case XA_SYSTEM_ABOUT:    /* Open the "About XaAES..." dialog */
  29.             open_about();
  30.             break;
  31.         case SHUTDOWN:            /* Shutdown the system */
  32.             shutdown=TRUE;
  33.             break;
  34.         case MN_TASK_MANAGER:    /* Open the "Task Manager" window */
  35.             open_taskmanager();
  36.             break;
  37.         case XA_SYSTEM_LAUNCH:    /* Launch a new app */
  38.             open_launcher();
  39.             break;
  40.     }
  41.     
  42. }
  43.